//
//  main.m
//  WanTao
//
//  Created by Macbook Pro on 2019/3/13.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
//#import "LSAppDelegate.h"
//#import "DESUtils.h"

//#define KTime  @"2020-5-4"
//#define KjiamiTimeString [DESUtils encryptUseDES:KTime key:KTime]
////main函数里面执行代码是从上往下执行的，方法写在下面会报错
//BOOL checkProductDate(NSString *tempDate) {
//    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
//    [dateFormatter setDateFormat:@"yyyy-MM-dd"];
//    NSDate *date = [dateFormatter dateFromString:tempDate];
//    // 判断是否大于当前时间
//    if ([date earlierDate:[NSDate date]] != date) {
//         return true;
//    } else {
//         return false;
//    }
//}
int main(int argc, char * argv[]) {
      NSString * appDelegateClassName;
//        NSString *jiamiStr = KjiamiTimeString;
//    //  NSString *jiemiStr = [DESUtils decryptUseDES:jiamiStr key:KTime];
//        BOOL isOpen = checkProductDate([DESUtils decryptUseDES:jiamiStr key:KTime]);
    @autoreleasepool {
//     if (isOpen) {
           appDelegateClassName = NSStringFromClass([AppDelegate class]);
//      }else{
//           appDelegateClassName = NSStringFromClass([LSAppDelegate class]);
//      }
    }
    return UIApplicationMain(argc, argv, nil, appDelegateClassName);
}
